SNiFF+ help targets

This section only applies if you use SNiFF+'s Make Support. If you use your own Makefiles, please refer to Using Your Own Makefiles.
Your SNiFF+ installation's General Makefile defines rules for building a number of special targets known as help targets. These targets are used by SNiFF+ in a number of situations, such as when you build targets using Make Support and update your working environments. Note that you can view a complete listing of all help targets by:

- choosing Target > Make > help during a SNiFF+ session, or by
- browsing the General Makefile (

$SNIFF_DIR/make_support/general.mk) .
In this section, you will learn how to use some of SNiFF+'s help targets for cleaning up your working environments and making symbolic links (on Unix only).

| Note
| All the help targets listed here work recursively. That is, when you build one of the help targets in a project, the target is also built in each of the recursive subprojects listed for the project in the Recursive Make Dir(s) field in the Build Options > Build Structure view of the Project Attributes dialog.

Cleaning up working environments with help targets
Here's a list of the help targets you can use for cleaning up working environments:

- clean_targets--Removes all (non-Java) targets in the current project directory and all recursive subproject directories.
- clean_objects--Removes all (non-Java) objects in the current project directory and all recursive subproject directories.
- clean--Removes all object files, Java class files and targets in the current project directory and all recursive subproject directories.
- sniffclean--Removes all SNiFF+ symbolic information files (

*.symtab ) in the .sniffdir directory of the current project directory and all recursive subproject directories.
- clean_state--Removes all SNiFF+ state files (
*.state* ) in the .sniffdir directory of the current project directory and all recursive subproject directories.
- clean_backup--Removes all backup files created by SNiFF+ in the current project directory and all recursive subproject directories.
Creating symbolic links (local copies) with help targets

| On Windows
| Symbolic links are not supported. As a result, SNiFF+ creates local copies instead of symbolic links. If disk space is an issue, please use the above help targets with care.

Here's a list of the help targets you can use for creating symbolic links. Note that all these targets are built in the current project directory and all recursive subproject directories in the current working environment, so directories above it are not affected:

- symbolic_links--Recursively creates symbolic links to object files and targets in the SOWE accessed by the current working environment. Also creates symbolic links to Makefiles in the SSWE accessed by the current working environment.
- symbolic_links_to_dependencies_files--Just for use in the SOWE. Use when you want to open projects in the SOWE without symbol information. Creates symbolic links to dependencies files in the SSWE.

Building the help targets
To build help targets, please complete the following steps:

Open the project for which you want to build help targets.
Update Make Support Files:
Choose the Update Makefiles... command from the Target menu.
Press the OK button in the dialog that appears to update the project's dependencies information.
SNiFF+ generates or updates the Make Support Files of all projects checkmarked in the Project Tree.
Use SNiFF+'s Target > Make... walking menu to build the following targets:

symbolic_links
clean_targets
clean
help
To build the other targets, open a SNiFF+ Shell tool and execute the following:

- On Unix:

gmake <help_target_name>
- On Windows NT/95:
sniffmake <help_target_name>